home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / HyperXExamples / LittleDialog.r < prev    next >
Encoding:
Text File  |  1998-12-03  |  1.6 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    LittleDialog XCMD
  4. #
  5. #    LittleDialog.r    -    Rez Source
  6. #
  7. #    Copyright © 1988, 1998 Apple Computer, Inc.
  8. #    All rights reserved.
  9. #
  10. #    HyperCard does not have a convention for resources belonging
  11. #    to XCMDs or XFCNs. Currently using a resource mover to copy the
  12. #    XCMD or XFCN to another stack can leave needed resources behind.
  13. #    There are two things that can be done to help prevent such errors:
  14. #
  15. #    1. To indicate that a resource may belong to an XCMD, this example
  16. #    uses resources having the same id number as the XCMD itself. This
  17. #    is not a complete solution since it will not work for an XCMD
  18. #    which has more than one resource of a given type. This is therefor
  19. #    only a suggestion until a better means of bundling XCMDs with other
  20. #    resources is developed.
  21. #
  22. #    2. Within the code of the XCMD, always check for the availability of
  23. #    of the resource before it is to be used. Then report an error that
  24. #    indicates what resource is missing.
  25. #
  26. ------------------------------------------------------------------------------*/
  27.  
  28.  
  29. #include "Types.r"
  30.  
  31.  
  32. resource 'DITL' (10002, "LittleDialog", purgeable) {
  33.      {
  34. /* 1 */ {84, 261, 105, 363},
  35.         button {
  36.             enabled,
  37.             "Acknowledged"
  38.         };
  39. /* 2 */ {84-4, 261-4, 105+4, 363+4},    /* surround button rect */
  40.         userItem {
  41.             disabled,
  42.         };
  43. /* 3 */ {9, 13, 75, 362},                /* SourceLanguage Item */
  44.         staticText {
  45.             disabled,
  46.             "^0"
  47.         };
  48.     };
  49. };
  50.  
  51.  
  52. resource 'DLOG' (10002, "LittleDialog", purgeable) {
  53.     {34, 36, 150, 412},
  54.     dBoxProc, invisible, noGoAway, 0x0, 10002, "LittleDialog", noAutoCenter
  55. };
  56.